package creationtype.builderpattern.builder;
/**
 * 邢帅教育
 * <p>
 * 本源代码由数据中心及其作者共同所有，未经版权持有者的事先书面授权，
 * 不得使用、复制、修改、合并、发布、分发和/或销售本源代码的副本。
 *
 * @copyright Copyright (c) 2018. xsteach.com all rights reserved.
 */

import creationtype.builderpattern.cup.CoffeeCup;
import creationtype.builderpattern.cup.Cup;
import creationtype.builderpattern.drink.Coffee;
import creationtype.builderpattern.drink.Drink;

/**
 * @author maikec
 * @date 2018/9/2
 */
public class CoffeeBuilder extends BeverageShop {
    @Override
    public Cup getCup() {
        return new CoffeeCup();
    }

    @Override
    public Drink getDrink() {
        return new Coffee();
    }

    /**
     * 这里的coffee是放入到杯子里面的coffee
     * @return Drink 饮料
     */
    @Override
    public Drink getGoods() {
        return new Coffee();
    }
}
